<?php
    include './base.php';
    $id = $_POST["id"];
    $uname = $_POST["uname"];
    $upassword = $_POST["upassword"];
    $gender = $_POST["gender"];
    $uemail = $_POST["uemail"];
    $uphone = $_POST["uphone"];
    $ulever = $_POST["ulever"];
    $sql = "update userinfo set username = '$uname',password = '$upassword',gender = '$gender',email = '$uemail',phone ='$uphone',ulever = '$ulever'where uid = '$id'";
    mysql_query($sql);
    print_r("修改成功");
?>